package com.yami.shop.service;

import  com.yami.shop.bean.cashregisterapp.AppCashRegisterSystemUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface AppCashRegisterSystemUserService extends IService<AppCashRegisterSystemUser>{

    void deleteCashRegisterSystemUserByIds(List<Long> ids);

    AppCashRegisterSystemUser getByName(String name);

    //注册收银员账号
    boolean save(AppCashRegisterSystemUser appCashRegisterSystemUser);

    //校验用户密码
    AppCashRegisterSystemUser checkUserPassword(AppCashRegisterSystemUser appCashRegisterSystemUser);

    //修改密码
    int updateUserPassword(AppCashRegisterSystemUser appCashRegisterSystemUser);

    //根据电话号码查询用户
    AppCashRegisterSystemUser getUserByPhone(String phone);

	//根据userId获取收银员信息
    AppCashRegisterSystemUser getAppCashRegisterSystemUserByUserId(Long userId);

}
